package com.cqc;

import java.sql.SQLOutput;
import java.time.LocalDateTime;

import com.cqc.dao.db1.User1Mapper;
import com.cqc.entity.User1EB;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class ApplicationTests {


    @Autowired
    User1Mapper user1Mapper;

    @Test
    void f1() {
        for (int i = 1; i < 100; i++) {
            User1EB eb = new User1EB();
            eb.setUsername("刘亦菲" + i);
            eb.setBirthday(LocalDateTime.now());
            eb.setSex("女");
            eb.setAddress("北京");
            user1Mapper.insert(eb);
        }
    }

    @Test
    void f2() {
        User1EB user1EB = user1Mapper.selectById(1L);
        System.out.println(user1EB);
    }

}
